package org.jflame.context.filemanager;

import java.net.URL;
import java.util.Map;

/**
 * 用于终端直传的签名url
 * 
 * @author charles.zhang
 */
public class SignedUrl {

    private URL url;
    /**
     * 参与了签名的自定义header,终端需要在请求时提交
     */
    private Map<String,String> headers;

    public SignedUrl(URL url) {
        this(url, null);
    }

    public SignedUrl(URL url, Map<String,String> headers) {
        this.url = url;
        this.headers = headers;
    }

    public URL getUrl() {
        return url;
    }

    public void setUrl(URL url) {
        this.url = url;
    }

    public String urlStr() {
        return url.toString();
    }

    public Map<String,String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String,String> headers) {
        this.headers = headers;
    }

}
